package cn.kmbeast.mapper;

import cn.kmbeast.pojo.dto.query.extend.NewsSaveDto;
import cn.kmbeast.pojo.entity.NewsSave;
import cn.kmbeast.pojo.vo.NewsSaveVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NewsSaveMapper {
    void save(NewsSave newsSave);

    List<NewsSaveVo> query(NewsSaveDto newsSaveDto);

    Integer queryCount(NewsSaveDto newsSaveDto);

    void batchDelete(@Param(value = "ids") List<Long> ids);

    void delete(NewsSaveDto newsSaveDto);
}
